//
// Created by hps on 24-4-17.
//

#ifndef TREEWIDGETITEM_H
#define TREEWIDGETITEM_H

#include "HeadFiles.h"

namespace hps {

class TreeWidgetItem: public QTreeWidgetItem {
public:
    TreeWidgetItem(QTreeWidgetItem *parent, std::string dirPath);
    std::string getDirPath() const { return m_dirPath; }
    TreeWidgetItem(QTreeWidgetItem *parent, std::string dirPath, std::string itemName);
    void setIsDir(bool isDir) { m_isDir = true;}
    bool isDir() const { return m_isDir; }
    std::string getItemName() const { return m_itemName; }
private:
    std::string m_dirPath;
    std::string m_itemName;
    bool m_isDir = false;
};

} // hps

#endif //TREEWIDGETITEM_H
